<form action="/admin/download/advert/add" method="get" onkeydown="if(event.keyCode==13){return false;}">
    <table style="margin-top: 20px;margin-left: 20px;float: left">
        <tbody>
        <tr><td>id</td><td><input type="text" name="id" placeholder="修改填,新增不填" style="height: 25px;width: 300px;" id="path_id"></td></tr>
        <tr><td>广告包名字</td><td><input type="text" name="advert_name" style="height: 25px;width: 300px;"></td></tr>
        <tr><td>广告包地址</td><td><input type="text" name="advert_pack" style="height: 25px;width: 300px;"></td></tr>
        <tr><td><input type="submit"></td></tr>
        </tbody>
    </table>
</form>

<table cellpadding="0" cellpadding="0" class="table" style="width:52%;margin-top: 20px;float: left">
    <tbody>
    <tr>
        <th>id</th>
        <th style="width:200px">广告包名字</th>
        <th>广告包地址</th>
        <th style="width:100px">添加时间</th>
        <th style="width:50px">操作</th>
    </tr>
    <?php foreach ($res as $k => $v){ ?>
        <tr>
            <td><?php echo $v['id']?></td>
            <td><?php echo $v['advert_name']?></td>
            <td><?php echo $v['advert_pack']?></td>
            <td><?php echo date('Y-m-d',$v['addtime'])?></td>
            <td><a href="/admin/download/advert/del/id/<?php echo $v['id'] ?>" style="color: red">删除</a></td>
        </tr>
    <?php }?>
    </tbody>
</table>
